package com.nec.recommend.module.weapp.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.nec.recommend.common.BaseEntity;
import lombok.Data;

@Data
@TableName("tb_weapp_user")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class WeappUser extends BaseEntity {
    @TableField("type")
    private String type;
    private Long recommendUserId;
    private String openid;
    private String avatar;
    private String name;
    private String phone;
    private Integer sex;
    private Integer score;
    private Integer maxScore;
    /**
     * 省编码
     */
    private String cityCode;
    /**
     * 省名称
     */
    private String cityName;
    /**
     * 市编码
     */
    private String provinceCode;
    /**
     * 市名称
     */
    private String provinceName;

    public static WeappUser buildDefault() {
        WeappUser weappUser = new WeappUser();
        weappUser.setName("微信用户");
        weappUser.setAvatar("");
        weappUser.setPhone("");
        weappUser.setSex(3);
        weappUser.setScore(0);
        weappUser.setMaxScore(0);
        weappUser.setCityCode("");
        weappUser.setCityName("");
        weappUser.setProvinceName("");
        weappUser.setProvinceCode("");
        weappUser.setType("普通用户");
        return weappUser;
    }
}
